Release 10.1A: OpenEdge Development:
Progress 4GL Reference
INTERVAL function
Returns the time interval between two DATE, DATETIME, or DATETIME-TZ values.
Syntax
datetime1An expression whose value is a DATE, DATETIME, or DATETIME-TZ.
datetime2An expression whose value is a DATE, DATETIME, or DATETIME-TZ.
interval-unitA character constant, or a character expression that evaluates to one of the following time units: ‘
years’, ‘months’, ‘weeks’, ‘days’, 'hours’, ‘minutes’, ‘seconds’ or ‘milliseconds’. These values are case insensitive and may be singular.Notes
- This function returns a signed integer value (positive or negative). For example, if
datetime1is less thandatetime2, the INTERVAL function returns a negative value.- If
datetime1ordatetime2is a DATE or DATETIME, the time value defaults to midnight and the time zone value defaults to the session's time zone, respectively.- You are responsible for managing value overflow, if any.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |